package com.sqm.a4;

/**
 * @Author sun.qingmeng
 * @Date 2021/2/10 10:34 下午
 */
public class Ex_1_1_11 {
    public static void main(String[] args) {
        int[][] a = new int[10][10];
        a[1][2] = 1;
        a[3][4] = 1;
        a[4][4] = 1;
        a[5][8] = 1;

        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                //System.out.printf("%2d", a[i][j]);
                if (a[i][j] != 0) {
                    System.out.printf("%2s", "*");
                } else {
                    System.out.printf("%2s", "-");
                }
            }
            System.out.printf("\n");

        }
    }
}
